<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			.y1 {
				width: 200px;
				height: 100px;
				background-color: black;
				border-radius: 200px 200px 0 0;
				position: relative;
			}
			
			.y2 {
				width: 200px;
				height: 100px;
				background-color: white;
				border-radius: 0 0 200px 200px;
				position: relative;
			}
			
			.suby1 {
				width: 100px;
				height: 100px;
				border-radius: 50%;
				background-color: black;
				position: absolute;
				top: 50px;
				z-index: 10;
			}
			
			.suby2 {
				width: 100px;
				height: 100px;
				border-radius: 50%;
				background-color: white;
				position: absolute;
				right: 0px;
				top: -50px;
			}
			
			.suby3 {
				width: 30px;
				height: 30px;
				border-radius: 50%;
				background-color: black;
				position: absolute;
				left: 35px;
				top: 35px;
			}
			
			.suby4 {
				width: 30px;
				height: 30px;
				border-radius: 50%;
				background-color: white;
				position: absolute;
				left: 35px;
				top: 35px;
			}
			
			.taiji {
				width: 200px;
				height: 200px;
				border-radius: 50%;
				box-shadow: 0px 0px 30px gray;
				position: absolute;
				left: 100px;
				top: 100px;
			}
		</style>
	</head>

	<body>
		<div class="taiji">
			<div class="y1">
				<div class=suby1>
					<div class="suby4"></div>
				</div>

			</div>
			<div class="y2">
				<div class="suby2">
					<div class="suby3"></div>
				</div>
			</div>
		</div>
		
		
		<script type="application/javascript">
			var l = 0;
			var t = 0;
			var lrot = 10;
			var trot = 10;
			
			setInterval(function() {
				var tj = document.querySelector(".taiji");
				l = l + lrot;
				t = t + trot;
				if(l>=1350){
					lrot=-20;
				}
				if(l<=0){
					lrot=20;
				}
				if(t>=570){
					trot=-20;
				}
				if(t<=0){
					trot=20;
				}
				tj.style.left=l+"px";
				tj.style.top=t+"px";
			},80)
			
		</script>
	</body>

</html>